import Ember from 'ember';

export default Ember.Controller.extend({
    mainController: Ember.inject.controller('business.mainpage'),
    actions: {
        enterDetail: function(staff) {
            var id = staff.get("id");
            this.get("mainController").switchMainPage('staff-add-detail', {
                id: id
            });
        },
        /*删除*/
        delOrg: function(staff) {
            org.set("delStatus", 1);
            var _self = this;
            org.save().then(function() {
                _self.get('target').send('saveRefresh');
            });
        },
        /*增添*/
        addStaff: function() {
            this.get("mainController").switchMainPage('staff-add-detail', {
                id: null
            });
        },
        /*跳转页面*/
        toOperation(staff){
          let id=staff.get('id');
          this.get("mainController").switchMainPage('customer-nursing-setting',{id:id});
        },
    }
});
